{template 'common/header'}
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('identity',array('op'=>'post'));}">添加身份</a></li>	
	<li class="active"><a href="{php echo $this->createWebUrl('identity', array('op'=>'display'));}">身份管理</a></li>	

</ul>
	
	<div class="main">
		<div class="category">
		<form action="" method="post">
 			<table class="table table-hover">
				<thead>
					<tr>
						<th style="width:10px;"></th>
						<th style="width:60px;">显示顺序</th>
						<th>身份名称</th>
						<th>添加时间</th>
						<th>公司名称</th>
						<th>是否显示</th>
						<th style="width:150px;">操作</th>
					</tr>
				</thead>
				<tbody>
				{loop $list $v} 
                  <tr>
						<td></td>
						<td><input type="text" class="span1" name="listorder[{$v['id']}]" value="{$v['listorder']}"></td>
	                    <td>{$v['identity_name']}</td>
	                    <td>{php echo date('Y-m-d H:i',$v['createtime'])}</td>
						<td>{if $v['iscompany']=='1'}<span class="label label-success">填写</span>{else}<span class="label label-important">不填写</span>{/if}</td>
						<td>{if $v['status']=='1'}<span class="label label-success">显示</span>{else}<span class="label label-important">不显示</span>{/if}</td>
						<td style="text-align:left;">
						<a href="{php echo $this->createWebUrl('identity',array('id' => $v['id'],'op'=>'post'))}">编辑</a>
						<a href="{php echo $this->createWebUrl('identity', array('op'=>'del','id' => $v['id']))}" onclick="return confirm('确定删除该身份吗？');" >删除</a>
						</td>
					</tr>
				{/loop} 
					<tr>
						<td></td>
						<td colspan="7">
							<a href="{php echo $this->createWebUrl('identity', array('op' => 'post','id'=>0))}"><i class="icon-plus-sign-alt"></i> 添加身份</a>
						</td>
					</tr>
				</tbody>
			</table>
			<table>
				<tr>
					<th style="width:30px"></th>
					<td>
						<button type="submit" class="btn btn-primary" name="submit" value="提交">提交</button>
						<input type="hidden" name="token" value="{$_W['token']}" />
					</td>
				</tr>
			</table>
		</form>
 		</div>
    </div>
{template 'common/footer'}
